

						<h1 align="center">Изработени Операции от Група: <span id="grpName">Unknown</span></h1>
						<p align="center">За периода от {$fromDateEdit}    до {$toDateEdit}</p>
						<form name="vsdeDate" action="{$smarty.server.PHP_SELF}?{$smarty.server.QUERY_STRING}" method="post">
							<input type="hidden" name="fromVsdeDate" id="fromVsdeDate" value="{$fromVsdeDate}" />
							<input type="hidden" name="toVsdeDate" id="toVsdeDate" value="{$toVsdeDate}" />
						</form>

						<br /><br />
						<br />

						<table cellspacing="0" width="100%">
							<tr>
								<td class="DialogTitle">Оператори</td>
							</tr>
							<tr>
								<td class="DialogBorder">

									<table cellspacing="1" class="DialogBox">
										<tr>
											<td class="DialogBox" valign="top">
												Филтър по Група:&nbsp;&nbsp;&nbsp;
												<select name="filter_groups" id="filter_groups" onchange="document.location='{$smarty.server.PHP_SELF}?group='+this.value;">
													
													<option value="0"  {if $filterGroup==0}selected="selected"{/if}>Обща</option>
												{foreach from=$listGroups item=gr}
													<option value="{$gr->id}" {if $filterGroup==$gr->id}selected="selected"{/if}>{'cp1251'|iconv:'utf-8':$gr->name}</option>
												{/foreach}
												</select>&nbsp;&nbsp;&nbsp;
												<br /><br />

												<script type="text/javascript">
													var cbGroups = document.getElementById('filter_groups');
													//alert(document.getElementById('grpName').innerHTML);
													document.getElementById('grpName').innerHTML = cbGroups.options[cbGroups.selectedIndex].text;
													//alert(cbGroups.options[cbGroups.selectedIndex].text);
													//alert(document.getElementById('grpName').innerHTML);
												</script>


												<script src="{$wwwDir}js/change_all_checkboxes.js" language="JavaScript" type="text/javascript"></script>
												<div style="line-height: 170%;">
													<a href="javascript: checkAll(true, document.processcategoryform, 'op_ids');">Всички</a> / 
													<a href="javascript: checkAll(false, document.processcategoryform, 'op_ids');">Нищо</a>
												</div>

												<form action="{$smarty.server.PHP_SELF}" method="post" name="processcategoryform">

													<table cellpadding="2" cellspacing="1" width="100%">
														<tr>
															<td colspan="2" align="left">
																<input type="checkbox" name="print_summary" />Обща Ведомост
															</td>
															<td>&nbsp;</td>
															<td>&nbsp;</td>
														</tr>
														<tr class="TableHead">
															<td width="3%">&nbsp;</td>
															<td >Име</td>
															<td width="10%">Заработка</td>
															<td width="40%">&nbsp;</td>
														</tr>

													{foreach from=$opWork item=op}
														<tr class="bottomborder {cycle values=", TableSubHead"}">
															<td><input type="checkbox" name="op_ids[{$op->operators_id}]" /></td>
															<td><font class="ItemsList">{'cp1251'|iconv:'utf-8':$op->operator_name}</font></td>
															<td>{$op->sub_total}</td>
															<td>
															
															</td>
														</tr>
													{/foreach}

														<tr>
															<td colspan="4"><hr /></td>
														</tr>
														<tr>
															<td>&nbsp;</td>
															<td align="right"><b>TOTAL:</b></td>
															<td align="left">{$opWorkTotal}</td>
															<td>&nbsp;</td>
														</tr>

											
														<tr>
															<td colspan="6" class="SubmitBox">

															
																<input type="button" name="print_work" value="Принтиране" onclick="vsOpenPrintPreview('work_summery', this.form);" />
																<br />
															
															</td>
														</tr>
													
													</table>
													<input type="hidden" name="mode" value="apply" />
												</form>
												<br />&nbsp;
											</td>
										</tr>
										<tr>
											<td>{$pager}</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>


